import request from '@/utils/request'

// 查询主贴列表
export function listPostManage(query) {
  return request({
    url: '/system/postManage/list',
    method: 'get',
    params: query
  })
}

// 查询主贴详细
export function getPostManage(id) {
  return request({
    url: '/system/postManage/' + id,
    method: 'get'
  })
}

// 新增主贴
export function addPostManage(data) {
  return request({
    url: '/system/postManage',
    method: 'post',
    data: data
  })
}

// 修改主贴
export function updatePostManage(data) {
  return request({
    url: '/system/postManage',
    method: 'put',
    data: data
  })
}

// 删除主贴
export function delPostManage(id) {
  return request({
    url: '/system/postManage/' + id,
    method: 'delete'
  })
}
